using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmPsRoyalItemHistory")]
    public class PsRoyalItemHistory
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "RoyalItemHisId", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public int RoyalItemHisId { get; set; }

		[ForeignKey("Emp")]
		[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public Nullable<int> EmpId { get; set; }

		[ForeignKey("RoyalItemReq")]
		[DataMember, Display(Name = "RoyalItemReqId", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public Nullable<int> RoyalItemReqId { get; set; }

		[ForeignKey("RoyalItem")]
		[DataMember, Display(Name = "RoyalItemId", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public Nullable<int> RoyalItemId { get; set; }

		[DataMember, Display(Name = "ReceivedDate", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public Nullable<System.DateTime> ReceivedDate { get; set; }

		[DataMember, Display(Name = "PosRef", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public string PosRef { get; set; }

		[DataMember, Display(Name = "PosName", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public string PosName { get; set; }

		[DataMember, Display(Name = "ClassName", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public string ClassName { get; set; }

		[DataMember, Display(Name = "Salary", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public Nullable<double> Salary { get; set; }

		[DataMember, Display(Name = "JobSiteName", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public string JobSiteName { get; set; }

		[DataMember, Display(Name = "GazetteNo1", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public string GazetteNo1 { get; set; }

		[DataMember, Display(Name = "GazetteNo2", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public string GazetteNo2 { get; set; }

		[DataMember, Display(Name = "GazetteNo3", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public string GazetteNo3 { get; set; }

		[DataMember, Display(Name = "GazetteNo4", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public string GazetteNo4 { get; set; }

		[DataMember, Display(Name = "GazetteNo5", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public string GazetteNo5 { get; set; }

		[DataMember, Display(Name = "GazetteDate", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public Nullable<System.DateTime> GazetteDate { get; set; }

		[DataMember, Display(Name = "GetDate", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public Nullable<System.DateTime> GetDate { get; set; }

		[DataMember, Display(Name = "ReturnFlag", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public string ReturnFlag { get; set; }

		[DataMember, Display(Name = "ReturnDate", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public Nullable<System.DateTime> ReturnDate { get; set; }

		[DataMember, Display(Name = "ReturnAmount", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public Nullable<double> ReturnAmount { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PsRoyalItemHistoriesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        public virtual HRM.Employee Emp { get; set; }

		public virtual HRM.PsRoyalItemRequest RoyalItemReq { get; set; }

		public virtual HRM.PsRoyalItem RoyalItem { get; set; }

    }
}